home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Larry Magid's Essential Internet
/
Larry Magid's Essential Internet (Quarterdeck Corporation)(1995).ISO
/
anims
/
127
/
127.dir
/
00091_Script_jumper scripts
< prev
Wrap
Text File
|
1995-11-10
|
1KB
|
40 lines
-- JUMPER SCRIPTS
-- Scripts that deal with movie sub-launching from JUMPER.DIR
-- Paste this castmember with its scripts into any sub-launched movie
-- when you want to quit, call the script "doQuit"
-- Don't quit ANY other way, or things will break!!!
on startMovie
--strictly speaking, this isn't necessary, but it's here for safety's sake
set the exitLock to true
end
on keyDown
-- this script handles keyboard events that are requests to quit
set ESCAPEKEY = 53
if (the controlDown and the key = "q") ¼
or (the controlDown and the key = ".") ¼
or (the keyCode = ESCAPEKEY) then doQuit
end
on doQuit
-- launchedFrom tells us where we were launched from
-- which is where we return to when we quit
global launchedFrom
-- stop sound play
repeat with cnt = 1 to 2
if soundBusy(cnt) then sound close cnt
end repeat
if stringP(launchedFrom) then
-- handles quitting for a sub-launched movie
set the visible of the stage = FALSE
set the centerStage = FALSE
set the fixStageSize = FALSE
unLoad 1, the lastframe
go to movie launchedFrom
else
quit
end if
end